#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
	srand((int)time(NULL));
	int arr[20];
	for (int i = 0; i < 20; i++)
	{
		arr[i] = rand() % 100 + 1;
	}
	for (int i = 0; i < 19; i++)
	{
		for (int j = 0; j < 19 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int t = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = t;
			}
		}
	}
	for (int n = 0; n < 20; n++)
	{
		printf("%d ", arr[n]);
	}
}